package com.xinsoft.entity.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.xinsoft.common.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;

/**
 * 配送
 * @TableName scm_distribution
 */
@EqualsAndHashCode(callSuper = true)
@TableName(value ="scm_distribution")
@Data
public class ScmDistribution extends BaseEntity implements Serializable {

    /**
     * 车辆ID
     */
    private Integer truckId;

    /**
     * 车牌号
     */
    private String truckNo;

    /**
     * 车牌色
     */
    private Integer truckColor;

    /**
     * 联系电话
     */
    private String phoneNo;

    /**
     * 司机
     */
    private String truckDriver;

    /**
     * 是否签收 0-未签收 1-已签收
     */
    private Integer doSign;

    /**
     * 配送日期
     */
    @NotNull(message = "配送日期不能为空")
    private Date disTime;

    /**
     * 合计数量
     */
    private BigDecimal disNum;

    /**
     * 配送单号
     */
    private String disNo;

    /**
     * 备注
     */
    private String remark;

    /**
     * 审核人
     */
    private Integer auditId;

    /**
     * 审核时间
     */
    private Date auditTime;

    /**
     * 审核状态 0-未审核 1-已审核
     */
    private Integer auditStatus;


    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}